package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 销售确认单主表
 * @Author: jeecg-boot
 * @Date:   2022-06-27
 * @Version: V1.0
 */
@ApiModel(value="t_flower_pre对象", description="销售确认单主表")
@Data
@TableName("t_flower_pre")
public class FlowerPre implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**确认单号*/
	@Excel(name = "确认单号", width = 15)
    @ApiModelProperty(value = "确认单号")
    private String no;
	@Excel(name = "预出库申请单号", width = 15)
    @ApiModelProperty(value = "预出库申请单号")
    private String outorderPreNo;
    /**出库人*/
    @Excel(name = "出库人", width = 15)
    @ApiModelProperty(value = "出库人")
    private String stockOutUser;

	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private BigDecimal number;
	/**总价*/
	@Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
    private java.math.BigDecimal toalprice;

    @Excel(name = "货损数量", width = 15)
    @ApiModelProperty(value = "货损数量")
    private BigDecimal numberhs ;
    @Excel(name = "货损金额", width = 15)
    @ApiModelProperty(value = "货损金额")
    private java.math.BigDecimal toalpricehs ;
    /**'客户id'*/
    @ApiModelProperty(value = "客户id")
    private String userid;
    /**'客户姓*/
    @Excel(name = "客户", width = 15)
    @ApiModelProperty(value = "客户")
    private String user;

    @Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String address;
    /**'出库时间*/
    @Excel(name = "出库时间", width = 15,  format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出库时间")
    private Date stockOutTime;

    /**基地负责人*/
    @Excel(name = "基地负责人", width = 15  )
    @ApiModelProperty(value = "基地负责人")
    private String sealSureUser;
    /**基地负责人*/
    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "基地负责人确认时间", width = 15, format = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "基地负责人确认时间")
    private Date sealSureTime;

    @Excel(name = "运管备案", width = 15 )
    @ApiModelProperty(value = "运管备案")
    private String pipSure;

    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "运管备案时间", width = 15, format = "yyyy-MM-dd HH:mm:ss"  )
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "运管备案时间")
    private Date pipSureTime;

	/**财务确认日期*/
//    @TableField(strategy= FieldStrategy.IGNORED)
    @TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "财务确认日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "财务确认日期")
    private Date finaSureTime;

	/**财务确认人*/
	@Excel(name = "财务确认人", width = 15)
    @ApiModelProperty(value = "财务确认人")
    private String finaSureUser;

    @Excel(name = "是否需要开票", width = 15)
    @ApiModelProperty(value = "是否需要开票")
    private String isinvoice;


    @Excel(name = "付款凭证", width = 15)
    @ApiModelProperty(value = "付款凭证")
    private String voucher;


    @Excel(name = "银行回单", width = 15)
    @ApiModelProperty(value = "银行回单")
    private String receipt;

    @Excel(name = "收款金额（元）", width = 15 , type=4 )
    @ApiModelProperty(value = "收款金额（元）")
    private BigDecimal getMoney;

    //渠道
    @Excel(name = "渠道", width = 15,dicCode = "ch_channel")
    @Dict(dicCode = "ch_channel")
    @ApiModelProperty(value = "渠道")
    private String channel;
    //账号
    @Excel(name = "账号", width = 15,dicCode = "ch_account_no")
    @Dict(dicCode = "ch_account_no")
    @ApiModelProperty(value = "账号")
    private String accountno;

    @Excel(name = "账期号", width = 15    )
    @ApiModelProperty(value = "账期号")
    private String period;

    @Excel(name = "账期状态", width = 15  )
    @ApiModelProperty(value = "账期状态")
    private String periodState;

    /**创建日期*/
    @Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**创建人*/
    @Excel(name = "创建人", width = 15,  dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @Dict( dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @ApiModelProperty(value = "创建人")
    private String createUser;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateUser;
	/**0草稿，1基地负责人审批，2运管备案，3财务确认*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态（-2删除  0草稿，1基地负责人审批，2运管备案，3财务确认）")
    private Integer state;
}
